/*
 * colordataextractor.h
 *
 *      Author: Jerome RD Soine and Christoph A Brand
 *      Institution: Schwarz goup, Institute for Theoretical Physics, Heidelberg University, Germany
 */

#ifndef COLORDATAEXTRACTOR_H_
#define COLORDATAEXTRACTOR_H_

#include "../../geomobject.h"
#include <fstream>


class ColorDataExtractor {
protected:
	ColorDataExtractor * additionalCDE;
	GeomObject * g;
	ColorDataExtractor(GeomObject * G, ColorDataExtractor * additional){additionalCDE = additional; g=G;};
	virtual void writeToFile(ofstream & fout) = 0;
public:
	GeomObject * getGeomObject(){return g;};
	void write(ofstream & fout){
		writeToFile(fout);
		if(additionalCDE != NULL) additionalCDE->write(fout);
	}
};


#endif /* COLORDATAEXTRACTOR_H_ */
